/*
 * @Author: zhoulei0232
 * @Date: 2021-06-24 15:36:44
 * @LastEditTime: 2021-07-07 18:11:19
 * @LastEditors: zhoulei0232
 * @Description:
 */

import { filterMenuRouter } from "../utils/menuFilter";

const getters = {
  getters_sidebarList: (state: any) => {
    console.log("getterSdsd是的是的", state.appModule["userInfo"].role);
    let menuList = filterMenuRouter(
      state.appModule["sidebarList"],
      state.appModule["userInfo"].role
    );

    return menuList;
  },
  getters_userInfo: (state: any) => state.appModule["userInfo"],
};

export default getters;
